
<?php if ($this->pageCount): ?>
    <div class="paginationControl">
        <div id="pag-goto">
            <input id="page-btn" name="gotopage" class="ui-button fl" type="button" value="Idź" /> <span class="fl">do strony</span>
            <input id="page-number" size="3" class="ui-input-text fl" name="page" type="text" value="<?php echo $this->current ?>" />
            <span class="fl"> . Wszystkich stron </span>
            <input id="page-count" size="3" class="ui-disabled fl" name="pages" type="text" value="<?php echo $this->pageCount ?>" />
            <div class="cls"></div>
        </div>
        <div id="pad-pages">
            <!-- Previous page link -->
            <?php if (isset($this->previous)): ?>
                <a class="ajax prev ui-button fl" href="<?php echo $this->url(array('page' => $this->previous)); ?>">
                    &lt; Poprzednia
                </a> 
            <?php else: ?>
                <span class="disabled prev ui-button fl">&lt; Poprzednia</span> 
            <?php endif; ?>

            <!-- Numbered page links -->
            <?php foreach ($this->pagesInRange as $page): ?>
                <?php if ($page != $this->current): ?>
                    <a class="ajax goto<?php echo $page?> ui-page fl" href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> 
                <?php else: ?>
                    <a class="ajax current goto<?php echo $page?> ui-page fl" href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> 
                <?php endif; ?>
            <?php endforeach; ?>

            <!-- Next page link -->
            <?php if (isset($this->next)): ?>
                <a class="ajax next ui-button fl" href="<?php echo $this->url(array('page' => $this->next)); ?>">
                    Następna &gt;
                </a>
            <?php else: ?>
                <span class="disabled next ui-button fl">Następna &gt;</span>
            <?php endif; ?>
                <div class="cls"></div>
        </div>
    </div>
<?php endif; ?>